Skip to content

MPTokenMetadata encoding, decoding, and validation utilities#184

Merged
GuillemGarciaDev merged 8 commits intoXRPLF:mainfrom
JordiParraCrespo:xrpl/feat/encode-decode-validate-mptoken-metadata
Feb 2, 2026
Merged

MPTokenMetadata encoding, decoding, and validation utilities#184
GuillemGarciaDev merged 8 commits intoXRPLF:mainfrom
JordiParraCrespo:xrpl/feat/encode-decode-validate-mptoken-metadata

Conversation

@JordiParraCrespo
Copy link
Collaborator

Add MPTokenMetadata encoding, decoding, and validation utilities

Description

This PR implements complete support for MPToken metadata handling according to the XLS-89 standard, including encoding, decoding, validation, and comprehensive test coverage for all functionality.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code where needed
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective
  • New and existing unit tests pass locally with my changes

Changes

  • Added ParsedMPTokenMetadata and ParsedMPTokenMetadataURI structs with compact JSON tags
  • Implemented EncodeMPTokenMetadata - encodes struct to hex with compact keys and sorted fields
  • Implemented DecodeMPTokenMetadata - decodes hex to struct, handling long and compact field names
  • Implemented ValidateMPTokenMetadata - validates hex against XLS-89 rules (required fields, formats, sizes, collisions)

Notes (optional)

@JordiParraCrespo JordiParraCrespo force-pushed the xrpl/feat/encode-decode-validate-mptoken-metadata branch from 40f3dac to e1e48a5 Compare January 16, 2026 08:53
commit b73dae4bd4d169cce69134e1e252c704146c5bba
Merge: e1e48a5 ca24f8b
Author: JordiParraCrespo <jordiparra99@gmail.com>
Date:   Thu Jan 29 12:06:28 2026 +0100

    Merge branch 'main' of github.com:XRPLF/xrpl-go into xrpl/feat/encode-decode-validate-mptoken-metadata

commit e1e48a5
Author: JordiParraCrespo <jordiparra99@gmail.com>
Date:   Thu Jan 15 14:47:46 2026 +0100

    feat(xrpl): add EncodeMPTokenMetadata, DecodeMPTokenMetadata and ValidateMPTokenMetadata utils

    feat(xrpl): update changelog and fix lint
@GuillemGarciaDev GuillemGarciaDev added feature Feature xrpl xrpl package labels Jan 29, 2026
@JordiParraCrespo JordiParraCrespo force-pushed the xrpl/feat/encode-decode-validate-mptoken-metadata branch from e1e48a5 to b25459b Compare January 29, 2026 11:38
@GuillemGarciaDev GuillemGarciaDev merged commit d841d93 into XRPLF:main Feb 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Feature xrpl xrpl package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants